answer "The stationery flag of “" & appname & "” is" && it & "."
else
answer it with "Sorry"
end if
end mouseUp
-- part 18 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=108 top=54 right=76 bottom=208
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: SetStationery
----- HyperTalk script -----
on mouseUp
answer file "Choose a file to work with:"
put it into appname
if appname = "" then exit to hypercard
if getstationery(appname) then
answer "Change stationery flag to what?" with "True" or "False"
else
answer "Change stationery flag to what?" with "False" or "True"
end if
setstationery appname,it
if the result ≠ "" then answer the result with "Sorry"
end mouseUp
-- part 19 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=473 top=51 right=83 bottom=511
-- title width / last selected line: 0
-- icon id / first selected line: 15664 / 15664
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
visual dissolve to black
visual dissolve to white
visual dissolve to black
visual dissolve
go home
end mouseUp
-- part contents for card part 9
----- text -----
GetStationery takes one parameter, the pathname of the file you want to examine. SetStationery takes two parameters, the pathname of the file and TRUE or FALSE indicating your choice of setting. Click on and/or examine the scripts of the buttons above to see how it works!
The stationery flag specifies that a file is a stationery pad. To support stationery pads, your application should check this flag for every document passed to it by the user. If the flag is true for a file that a user wants to open, your application whould copy the template's contents into a new document in an untitled window (or stack as the case may be).
A small shareware fee of $5 is requested if you use this external in any “in-house”, shareware or freeware products. The registration fee for development and prototyping of a future commercial product is $10. The registration fee for unlimited commercial use in a SINGLE “for sale” product is $15. The fee for unlimited commercial use with MULTIPLE products is $25. These are life-time registrations. You are entitled to all future shareware updates without further cost.
If you have questions or comments I can be reached through the following:
Jeffrey Donald Iverson CompuServe: 76675,1772
3841 Whispering Way Drive SE #101 AppleLink: ALL.AMERICAN